<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html="en">
<head>
	<base href="<%=basePath%>">
	<meta charset="UTF-8">
	<!-- 日历插件 -->
	<link rel="stylesheet" href="front/css/bootstrap-datetimepicker.css"  type="text/css" >
	<!--下拉框 -->
	<link rel="stylesheet" href="front/css/chosen.css" type="text/css" />
	<link rel="stylesheet" href="front/css/normal.css">
    <link rel="stylesheet" href="front/css/addBox.css">
</head>
<body>
<p class="addSlide-title">经理审批<span>×</span></p>
	<form method="post">
		<ul class="addList">
			<li><span>用户名:</span>
				<input type="text" name="user_name" id="user_name" readonly value="${pd.USERNAME}"/>
			</li>
			
			<li><span>反馈内容:</span>
				<div style="width:400px;display:inline-block;vertical-align:top;">${pd.content}</div>
			</li>
			
			<li><span>联系电话:</span>
				<input type="text" name="user_phone" id="user_phone" value="${pd.user_phone}"/>
			</li>
		</ul>
	</form>
	
	<form action="userfeedback/${msg }.do" name="Form" id="Form" method="post">
		<input type="hidden" name="feedback_id" id="feedback_id" value="${pd.feedback_id}" maxlength="32" placeholder="这里输入" title=""/>
		<input type="hidden" name="user_id" id="user_id" value="${pd.user_id}" maxlength="32" placeholder="这里输入" title=""/>
		<input type="hidden" name="approveuser_id" id="approveuser_id" value="${pd.approveuser_id}" maxlength="32" placeholder="这里输入" title=""/>
		<ul class="addList">
			<li><span>是否同意:</span>
				<input name="track_state" id="track_state" type="radio"  checked="checked" value="2"><label class="lbl" for='track_state'>同意</label>
				<input name="track_state" id="track_state1" type="radio" value="1" ><label class="lbl" for='track_state1'>驳回</label>
			</li>
			
			<li><span>审批内容:</span>
				<textarea style="width:400px;" name="content" id="content" ></textarea>
			</li>
		</ul>
		<p>
			<input type="button" onclick="cancel()" value="取消保存" class='cancelSave'>
            <input type="button" onclick="save();" value="确认保存" class='confirmSave'>
	    </p>
	</form>
<script src="front/js/jquery-2.0.3.min.js"></script>
<!-- 下拉框 -->
<script src="front/js/chosen.jquery.js"></script>
<!-- 日历插件 -->
<script src="front/js/bootstrap-datetimepicker.js"></script>
<script src="front/js/jquery.tips.js"></script>
<script src="front/js/index.js"></script>
<script src="static/js/bootstrap.min.js"></script>
<script src="static/js/ace-elements.min.js"></script>
<script src="static/js/ace.min.js"></script>
<!-- 编辑框-->
<script type="text/javascript" charset="utf-8">window.UEDITOR_HOME_URL = "<%=path%>/plugins/ueditor/";</script>
<script type="text/javascript" charset="utf-8" src="plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="plugins/ueditor/ueditor.all.js"></script>
<script type="text/javascript">
$(function() {
	//日期插件
      $(".form_datetime").datetimepicker( {
          autoclose:true,
          format: "yyyy-mm-dd hh:ii",
          language: 'cn',
          clearBtn:true,
          todayHighlight: true
      });
	//下拉框
     $(".select").chosen();
});

//取消  	
function cancel(){
	$('#zhongxin', parent.document).hide();
}

//保存
function save(){
	if($("#user_id").val()==""){
		$("#user_id").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#user_id").focus();
		return false;
	}
	if($("#user_name").val()==""){
		$("#user_name").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#user_name").focus();
		return false;
	}
	
	if($("#user_phone").val()==""){
		$("#user_phone").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#user_phone").focus();
		return false;
	}
	$("#Form").submit();
}

//修改
function edit(){
	if($("#track_state").val()==""){
		$("#track_state").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#track_state").focus();
		return false;
	}
	if($("#remark").val()==""){
		$("#remark").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#remark").focus();
		return false;
	}
	$("#Form").submit();
}
</script>
</body>
</html>